function alertW(msg) {
	currentWin.$.dialog({
				id : "id1",
				content : msg,
				lock : true,
				icon : "warning",
				path : rootPath+"/css"
			});
}

function alertWin(msg,level) {
	currentWin.$.dialog({
				id : "id1",
				content : msg,
				lock : true,
				icon : level,
				path : rootPath+"/css",
				ok:true,
				okVal:"关闭"
			});
}

function alertWinWithRefresh(msg,level){
	currentWin.$.dialog({
				id : "id1",
				content : msg,
				lock : true,
				icon : level,
				path : rootPath+"/css",
				ok:function(){
					window.location = window.location.href;
					return true;
				},
				okVal:"关闭"
			});
}

function trim(str) {
	return $.trim(str);
}